package com.cust.cow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cust.cow.pojo.collectSemenLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.*;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Mapper
public interface CollectSemenLogMapper extends BaseMapper<collectSemenLog> {
    @Select("select * from collectSemenLog")
    public List<collectSemenLog> findCollectSemenLogAll();

    @Insert("insert into collectSemenLog values(#{cattleId}, #{collectSemenDate}, #{state})")
    public int insertCollectSemenLog(@RequestBody collectSemenLog collectSemenLog);

    @Delete("delete from collectSemenLog where cattl_id = #{cattleId}")
    public int deleteCollectSemenLog(Integer cattleId);
}
